/**
 * Interface for a Packet. Packet format:
 *
 * Byte 0 = end?
 * Byte 1 - 5 = seqNum
 * Byte 6 - 8 = Length
 * Bytes 9 - 9+Length = Data
 *
 * @author Timothy Flynn (trflynn@wpi.edu)
 * @version April 10, 2012
 */
#ifndef _PACKET_H_
#define _PACKET_H_

#include "common.h"

class Packet {
public:
	Packet();
	virtual ~Packet();

	// Fields intentionally public for convenience
	// This is really a struct...
	bool end;
	short seq;
	short length;
	char *data;
};

#endif
